Xbasic
DTOR Function
Syntax
Angle_In_Radians as N = DTOR(N degrees)
Arguments
- degrees
A number between -180 and + 180.
Description
Converts an angle expressed in degrees to an angle expressed in radians.
Discussion
DTOR() converts Angle_In_Degrees (-180 to + 180) to an angle in radians (- p and + p ).
Example
? cos(0) = 1 ? cos( dtor(90) ) = 0 ? cos(math_pi) = -1
See Also